import { addCsvData } from "../csv";
export enum VoiceAction {
    Speech = "Speech", // 语音事件
}

export enum VoiceEventKey {
    VoiceASR = "VoiceASR", // 语音识别事件
}

// 语音展示事件
function eventVoice(action: VoiceAction.Speech, eventKey: VoiceEventKey.VoiceASR, value: string): void;

function eventVoice(action: VoiceAction, eventKey: any, value?: any): void {
    const data = { app: "Voice", event_key: eventKey, data_json: { action, widget_type: null, widget_id: null, value } };
    addCsvData(data);
}

export { eventVoice }